#include <iostream>
#include <chrono>

#include "boost/asio/io_context.hpp"
#include "boost/asio/steady_timer.hpp"


void print(boost::system::error_code ec){
    std::cout<<"async timer."<<std::endl;
}

int main(int argc, char** argv){
    boost::asio::io_context io_context;
    boost::asio::steady_timer timer(io_context, std::chrono::seconds(3));

    timer.async_wait(&print);

    std::size_t size = io_context.run();
    std::cout<<"size: "<<size<<std::endl;

    std::cout<<"here."<<std::endl;
    return 0;
}
